<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:35:"template/index/contact\contact.html";i:1530519041;s:67:"D:\phpstudy_pro\WWW\tp.com\public\template\index\public\header.html";i:1526714713;s:67:"D:\phpstudy_pro\WWW\tp.com\public\template\index\public\footer.html";i:1526783421;}*/ ?>
        <!DOCTYPE html>

<html>

<head>

  <meta charset="utf-8">

  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  <title><?php if(!(empty($info['title']) || (($info['title'] instanceof \think\Collection || $info['title'] instanceof \think\Paginator ) && $info['title']->isEmpty()))): ?><?php echo $info['title']; ?>-<?php endif; if(!(empty($web) || (($web instanceof \think\Collection || $web instanceof \think\Paginator ) && $web->isEmpty()))): ?><?php echo $web['title']; else: ?>EASY TP<?php endif; ?></title>

  <meta name="keywords" content="<?php if(!(empty($info['tag']) || (($info['tag'] instanceof \think\Collection || $info['tag'] instanceof \think\Paginator ) && $info['tag']->isEmpty()))): ?><?php echo $info['tag']; else: ?><?php echo $web['tag']; endif; ?>">

  <meta name="description" content="<?php if(!(empty($info['description']) || (($info['description'] instanceof \think\Collection || $info['description'] instanceof \think\Paginator ) && $info['description']->isEmpty()))): ?><?php echo $info['description']; else: ?><?php echo $web['desc']; endif; ?>">

  <link rel="stylesheet" href="/static/public/layui/css/layui.css">

  <link rel="stylesheet" href="/static/public/font-awesome/css/font-awesome.css">

  <link rel="stylesheet" href="/static/index/css/tplay.css">

</head>

<body>

  <div class="layui-layout layui-layout-admin">

    <div class="layui-header">

      <ul class="layui-nav tplay-float-auto tplay-header">

        <li class="layui-nav-item" lay-unselect>
          <a href="/" class="tplay-logo"><?php if(!(empty($web) || (($web instanceof \think\Collection || $web instanceof \think\Paginator ) && $web->isEmpty()))): ?><?php echo $web['name']; else: ?>Tplay Pro<?php endif; ?></a>
        </li>

        <li class="layui-nav-item" id="tplay-hearder-search" lay-unselect>

          <form class="layui-form" action="<?php echo url('index/article/index'); ?>" method="post">

            <div class="layui-input-inline">

              <input type="test" name="keywords" placeholder="search content" autocomplete="off" class="layui-input tplay-seach">

            </div>

          </form>

        </li>

        <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

        <li class="layui-nav-item" lay-unselect>
          <a href="<?php echo url($vo['href']); ?>" <?php if($vo['is_target'] == '1'): ?>target="_blank"<?php endif; ?>><?php echo $vo['name']; ?></a>
          <?php if(!(empty($vo['list']) || (($vo['list'] instanceof \think\Collection || $vo['list'] instanceof \think\Paginator ) && $vo['list']->isEmpty()))): ?>
          <dl class="layui-nav-child">
            <?php if(is_array($vo['list']) || $vo['list'] instanceof \think\Collection || $vo['list'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$po): $mod = ($i % 2 );++$i;?>
            <dd><a href="<?php echo $po['href']; ?>"><?php echo $po['name']; ?></a></dd>
            <?php endforeach; endif; else: echo "" ;endif; ?>
          </dl>
          <?php endif; ?>
        </li>

        <?php endforeach; endif; else: echo "" ;endif; ?>
        
        <li class="layui-nav-item tplay-header-right">
          <?php if(!(empty($user) || (($user instanceof \think\Collection || $user instanceof \think\Paginator ) && $user->isEmpty()))): ?>
          <a href="javascript:;"><img src="/static/index/img/msg.jpg" width="35" style="border-radius: 50%"> <?php echo $user['name']; ?></a>
          <dl class="layui-nav-child">
            <dd><a href="<?php echo url('index/user/logout'); ?>">退出</a></dd>
          </dl>
          <?php else: ?>
          <a href="javascript:;">登录</a>
          <dl class="layui-nav-child">
            <dd><a href="<?php echo url('index/user/login'); ?>">登录</a></dd>
            <dd><a href="<?php echo url('index/user/registered'); ?>">注册</a></dd>
          </dl>
          <?php endif; ?>
        </li>

      </ul>

    </div>


		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=5cc1ae75a01f2047077898c7e43d6bd8"></script>
		<div id="allmap" style="width:100%;height:450px;"></div>
    	<div class="tplay-body" style="padding:20px;">
	        <form class="layui-form" id="tplay-login">
			  <div class="layui-form-item">
			      <input type="text" name="name" lay-verify="required" placeholder="称呼" autocomplete="off" class="layui-input">
			  </div>
			  <div class="layui-form-item">
			      <input type="text" name="phone" lay-verify="required" placeholder="电话" autocomplete="off" class="layui-input">
			  </div>
              <div class="layui-form-item">
                  <input type="text" name="email" lay-verify="required" placeholder="邮箱" autocomplete="off" class="layui-input">
              </div>
			  <div class="layui-form-item">
                  <textarea name="content" placeholder="请输入内容" class="layui-textarea"></textarea>
			  </div>
			  <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="tplay-login-submit" id="tplay-login-submit">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
			</form>
		</div>
		    <div class="tplay-footer">

  		<i class="fa fa-copyright"></i> 

		<?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

  		<a href="<?php echo $vo['href']; ?>" <?php if($vo['is_target'] == '1'): ?>target="_blank"<?php endif; ?>><?php echo $vo['name']; ?></a> 

		<?php endforeach; endif; else: echo "" ;endif; ?>

    </div>

  </div>

  <script src="/static/public/jquery/jquery.min.js"></script>

  <script src="/static/public/layui/layui.js"></script>

  <script src="/static/index/js/tplay-footer.js"></script>

</body>

</html>
		<script type="text/javascript">
		    layui.use(['form'], function () {
		        var form = layui.form,$ = layui.$,apiconfig = layui.apiconfig;
		        form.on('submit(tplay-login-submit)', function(data) {
                    $.ajax({
                        url:"/index/contact/contact",
                        data:$('#tplay-login').serialize(),
                        type:'post',
                        async: false,
                        success:function(res) {
                            layer.tips(res.msg,'#tplay-login-submit');
                            if(res.code == 1) {
                                $("#tplay-login")[0].reset()
                            }
                        }
                    })
                    return false;
                });
		    });
          
          // 百度地图API功能
          var map = new BMap.Map("allmap");    // 创建Map实例
          map.centerAndZoom(new BMap.Point(116.404, 39.915), 12);  // 初始化地图,设置中心点坐标和地图级别
          //添加地图类型控件
          map.addControl(new BMap.MapTypeControl({
              mapTypes:[
                  BMAP_NORMAL_MAP,
                  BMAP_HYBRID_MAP
              ]}));	  
          map.setCurrentCity("北京");          // 设置地图显示的城市 此项是必须设置的
          map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放
		</script>